Cancel drags when the grabs get broken. Fixes bug #333056:
authorFederico Mena Quintero <federico@novell.com>
Tue, 7 Mar 2006 17:48:07 +0000 (17:48 +0000)
committerFederico Mena Quintero <federico@src.gnome.org>
Tue, 7 Mar 2006 17:48:07 +0000 (17:48 +0000)
commit712dc6b8dac570dc248230392ebe3f5cf6a1990b
tree73c3371b94c1e584e10d29d61ba4b3cb8b4b51fd
parent11ca120a443c14f4721defe557275e27264e469b
Cancel drags when the grabs get broken. Fixes bug #333056:

2006-03-07  Federico Mena Quintero  <federico@novell.com>

Cancel drags when the grabs get broken.  Fixes bug #333056:

* gtk/gtkdnd.c (gtk_drag_selection_received): The time argument is
a guint, not guint32.
(gtk_drag_source_event_cb): Return gboolean, not gint.
(gtk_drag_anim_timeout): Likewise.
(gtk_drag_motion_cb): Likewise.
(gtk_drag_key_cb): Likewise.
(gtk_drag_button_release_cb): Likewise.
(gtk_drag_abort_timeout): Likewise.
(gtk_drag_begin_internal): Connect to "grab-broken-event" on the
ipc_widget.
(gtk_drag_source_info_destroy): Disconnect from the
"grab-broken-event" callback.
(gtk_drag_end): Likewise.
(gtk_drag_grab_broken_event_cb): New callback.  We cancel the drag
if the grab was broken and not regrabbed by the DnD code.

2006-03-07  Federico Mena Quintero  <federico@novell.com>

* gtk/gtkfilechooserdefault.c (shortcuts_button_press_event_cb):
Hack to let the treeview's button-press-event handler run before
ours.  This lets the selection be updated before we pop up a
context menu.
ChangeLog
ChangeLog.pre-2-10
gtk/gtkdnd.c
gtk/gtkfilechooserdefault.c